package org.example.crm.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.crm.base.BaseMapper;
import org.example.crm.model.Customer;
import org.example.crm.model.CustomerOrder;
import org.example.crm.query.CustomerQuery;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component
public interface CustomerMapper extends BaseMapper<Customer, Integer> {

    Customer selectByCustomerByName(String name);

    List<Customer> selectAllLossCustomer();

    int updateCustomerStateByIds(List<Integer> lossCustomerIds);

    List<Map<String, Object>> queryCustomerContributionByParams(CustomerQuery customerQuery);

    List<Map<String, Object>> countCustomerMake();
}